HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprotonperinggit/wp-content/plugins/wp-cardealer/templates/misc/currencies.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}
if ( wp_cardealer_get_option('enable_multi_currencies') !== 'yes' ) {
	return;
}
$current_currency = WP_CarDealer_Price::get_current_currency();
$currency_symbol = WP_CarDealer_Price::currency_symbol($current_currency);
$currencies = WP_CarDealer_Price::get_currencies_settings();


if(isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] === 'on') {
	$url = "https://";
} else {
    $url = "http://";
}
// Append the host(domain name, ip) to the URL.   
$url .= $_SERVER['HTTP_HOST'];

// Append the requested resource location to the URL   
$url .= $_SERVER['REQUEST_URI'];

$url_arr = parse_url($url);
$uquery = isset($url_arr['query']) ? $url_arr['query'] : '';
if ( $uquery ) {
	$url = str_replace(array($uquery,'?'), '', $url);
}
?>
<div class="currencies-wrapper">
    <a class="dropdown-toggle" data-toggle="dropdown" aria-expanded="true" role="button" aria-haspopup="true" data-delay="0" href="#">
        <?php echo esc_html($currency_symbol.' '.$current_currency); ?>
        <i class="fa fa-caret-down"></i>
    </a>
    <div class="dropdown-menu dropdown-menu-right">
    	<form class="listings-currencies" method="get" action="<?php echo esc_url($url); ?>">
			<ul class="currencies">
				<?php
				foreach ($currencies as $currency) {
					$currency_symbol = WP_CarDealer_Price::currency_symbol($currency['currency']);
					?>
					<li class="<?php echo esc_attr($current_currency == $currency['currency'] ? 'active' : ''); ?>">
						<label for="input-currency-<?php echo esc_attr($currency['currency']); ?>">
							<input id="input-currency-<?php echo esc_attr($currency['currency']); ?>" type="radio" name="currency" value="<?php echo esc_attr($currency['currency']); ?>" class="hidden">
							<?php  echo esc_html($currency_symbol.' '.$currency['currency']); ?>
						</label>
					</li>
					<?php
				}
				?>
			</ul>

			<?php WP_CarDealer_Mixes::query_string_form_fields(null, array('currency')); ?>
		</form>
    </div>
</div>